import { ProductCreateDto, ProductListDto, ProductSingleDto, ProductUpdateDto } from '../dtos/product.dto';
import ProductModel from '../models/product.model';
import { PageRequest } from '../types';
import { BaseService } from './.service';

/**
 * 商品服务类
 */
export class ProductService extends BaseService<ProductModel, ProductListDto, ProductSingleDto, ProductCreateDto, ProductUpdateDto> {
  constructor() {
    super(ProductModel, new ProductSingleDto(), new ProductListDto());
  }
}

/**
 * 商品服务实例
 */
export const productService = new ProductService();
